package com.pattern.design.designpattern.Proxy;

import android.media.midi.MidiManager;

import com.pattern.design.designpattern.MainActivity;

/**
 * author:harisucici on 2018/10/11 10:31
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class Lawyer implements Lawperson {
    private Lawperson lawperson;

    /**
     * Instantiates a new Lawyer.
     *
     * @param l the l
     */
    public Lawyer(Lawperson l){
        this.lawperson = l;
    }

    @Override
    public void submit() {
//        MainActivity.systemOut("申请");
        lawperson.submit();
    }

    @Override
    public void juzheng() {
//        MainActivity.systemOut("拿出证明");
        lawperson.juzheng();
    }

    @Override
    public void bianhu() {
//        MainActivity.systemOut("辩论");
        lawperson.bianhu();
    }

    @Override
    public void finish() {
//        MainActivity.systemOut("判决");
        lawperson.finish();
    }
}
